//处理token
export const setToken = token =>localStorage.setItem('token',token);
export const getToken = () =>localStorage.getItem('token');
export const removeToken = () =>localStorage.removeItem('token');

//处理管理员权限
export const setAdmin = ok =>localStorage.setItem('isAdmin',ok);
export const getAdmin = () =>localStorage.getItem('isAdmin');
export const removeAdmin = () =>localStorage.removeItem('isAdmin');

//处理用户id
export const setUserId = UserId =>localStorage.setItem('UserId',UserId);
export const getUserId = () =>localStorage.getItem('UserId');
export const removeUserId = () =>localStorage.removeItem('UserId');




